#!/bin/bash

echo "初始化中....."
git config --global user.email "544025211@qq.com"
git config --global user.name "xiongjunfeng"


git pull origin master
git add -A

read -p "输入日志,按Enter键跳过 :" log

if  [ ! -n "$log" ] ;then
    git commit -m "update: $(date '+%Y-%m-%d %H:%M:%S')"
else
    git commit -m "${log}"
fi

git push origin master

echo "远程推送完成"
